<!DOCTYPE html>
<html lang="en">
<head>

    <title>投票页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

    <link rel="stylesheet" type="text/css"  href="/css/frontend/base.css"/>
    <link rel="stylesheet" type="text/css"  href="/css/frontend/vote.css"/>
</head>
<body>
<div class="row">
    <div class="header col-md-12">
        <div class="h-l col-xs-8">
            <div class="user-i pull-left">
                <img src="{{Wx.headpic}}" class="img-circle"/>
            </div>
            <div class="user-n">
                <a href="#">{{Wx.wxname}}</a>
            </div>
        </div>
        <div class="h-r col-xs-4">
            <a href="#" class="pull-right">关注</a>
        </div>
    </div>
    <div class="vote-intro col-md-12">
        <div class="cover">
            <img src="{{vote.pic}}"/>
            <h4>{{vote.name}}</h4>
        </div>
        <div class="detail">
            <p>{{vote.detail}}</p>{%if is_ok!=1%}
            <span>活动到期时间:{{vote.time_end}}</span>
            {%else%}
            <span style="clo">{{vote.time_end}}</span>
            {%endif%}
        </div>
    </div>
    {%if is_ok!=1%}
    <div class="content-wrap col-md-12">
        <div class="vote-join">
            <h4>已有{{count}}人投票，赶紧投下你宝贵的一票吧^_^</h4>
            {%if content()%}
            <div style="padding: .5em; border: solid 1px #2DB829; margin: .5em 0;">{{ content() }}</div>
            {%endif%}
            <form method="post">
                {%for voteOption in voteOptions%}
                <div class="candidate clearfix">
                    <div class="cand-img col-xs-5 pull-left" >
                        <img {%if vote.state==1%}src="/img/toupiao.jpg"{%else%}src="{{voteOption.pic|default('/img/toupiao.jpg')}}"{%endif%} style="width: 100%;"/>
                    </div>
                    <div class="cand-intro col-xs-7 pull-right">
                        <h3>{{voteOption.option}}</h3>

                        <div class="intro-wrap">
                            <p>{{voteOption.detail}}</p>
                        </div>
                        <div class="verify">
                            <input class="pull-left" value="{{voteOption.id}}" {% if vote.type==1 %}type="radio" name="selected" {% else %}name="select[]" type="checkbox" {%endif%}>
                            <span class="pull-left">投我一票</span>
                            <span class="pull-right">{{voteOption.count}}票</span>
                        </div>
                    </div>
                </div>
                {%endfor%}

                <button class="btn btn-info col-xs-12 submit">确认投票</button>
        </div>
    </div>
    {%else%}
    <div class="content-wrap col-md-12">
        <div class="vote-join">
            <h4>该投票已过期！</h4>
        </div>
    </div>
    {%endif%}

    <div class="footer col-md-12">
        <p>由<a class="iyz">i逸站</a>提供技术支持</p>
    </div>
</div>
</body>
</html>






